package com.parking.stall.inter;

import com.parking.common.core.model.Result;
import com.parking.stall.client.form.OrderTimeForm;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Set;

@FeignClient(name = "parking-order",path = "/order")
public interface OrderClient {
    /**
     *userSelectTimeQuantum：筛选出符合时间范围内的所有订单的车位信息id
     * @param form 用户选择时间范围
     * @return  Set<Integer>   车位的ids集合
     *                          1.有时间交集的订单对应的车位Id
     *                          2.超时的订单对应的车位Id
     * @throws Exception
     */
    @PostMapping("/orderInfo/userSelectTimeQuantum")
    public Result<Set<Integer>> userSelectTimeQuantum (@RequestBody OrderTimeForm form)throws Exception;
}
